import request from '@/utils/request'

// 创建地块坐标
export function createwrdkgrid(data) {
  return request({
    url: '/wrdk/wrdkgrid/create',
    method: 'post',
    data: data
  })
}

// 更新地块坐标
export function updatewrdkgrid(data) {
  return request({
    url: '/wrdk/wrdkgrid/update',
    method: 'put',
    data: data
  })
}

// 删除地块坐标
export function deletewrdkgrid(id) {
  return request({
    url: '/wrdk/wrdkgrid/delete?id=' + id,
    method: 'delete'
  })
}

// 获得地块坐标
export function getwrdkgrid(id) {
  return request({
    url: '/wrdk/wrdkgrid/get?id=' + id,
    method: 'get'
  })
}

// 获得地块坐标分页
export function getwrdkgridPage(query) {
  return request({
    url: '/wrdk/wrdkgrid/page',
    method: 'get',
    params: query
  })
}

// 导出地块坐标 Excel
export function exportwrdkgridExcel(query) {
  return request({
    url: '/wrdk/wrdkgrid/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
